function http({
    url,
    success
}){
    wx.request({
        url,
        header:{'content-type':'application/json'},
        method:'GET',
        dataType:'json',
        responseType:'text',
        success:(res)=>{
            success(res)
        }
    });
}
module.exports = {
    http
}